﻿<%-- 
    /**************************************************************************
    Sayfa:  ReportViewControl için referans yönlendirici olarak, 
    veritabanındaki tüm raporların listesini içerisi ve her bir treeview.node 
    ile istenen rapora yönlendirmeye yarar.

        Tarih           Sürüm       Değişiklik          İşlem
        --------------------------------------------------------------------------
        2013.Kas        1           Mehmet A. ORAKCI  Oluşturuldu.
           
    
    ****************************************** mehmetakiforakci@gmail.com ****/
--%>

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReportsTreeControl.ascx.cs" Inherits="RaporProj.ReportsTreeControl" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxLoadingPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxMenu" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxTreeView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Src="~/ReportEditControl.ascx" TagPrefix="uc1" TagName="ReportEditControl" %>


<script type="text/javascript">
    /// <reference path="ReportsScript.js" />
    /// <reference path="ReportViewControl.ascx" />



</script>

<div id="treeArea">
    <dx:ASPxTreeView ID="ReportsTreeView" ClientInstanceName="ReportsTreeView" runat="server"
        AllowSelectNode="true" NodeLinkMode="ContentBounds" ShowTreeLines="true">
        <ClientSideEvents NodeClick="Report.ReportsTreeViewNodeClick" Init="ReportsTreeViewInit" />
        <Nodes>
            <dx:TreeViewNode Text="Rapor kat 1" Name="1" Image-Url="../ReportImages/folder.png">
                <Nodes>
                    <dx:TreeViewNode Text="Rapor 37" Name="37" Image-Url="../ReportImages/document.png"></dx:TreeViewNode>
                </Nodes>
            </dx:TreeViewNode>
        </Nodes>
    </dx:ASPxTreeView>
</div>

<script type="text/javascript">
    SelectNode();
</script>

<dx:ASPxPopupMenu ID="ReportsTreeMenu" ClientInstanceName="ReportsTreeMenu" runat="server">
    <Items>
        <dx:MenuItem Name="0" Text="Rapor&nbsp;Ekle" GroupName="report"></dx:MenuItem>
        <dx:MenuItem Name="1" Text="Düzenle" GroupName="report"></dx:MenuItem>
        <dx:MenuItem Name="2" Text="Sil" GroupName="report"></dx:MenuItem>
        <dx:MenuItem Name="3" BeginGroup="true" Text="Kategori&nbsp;Ekle" GroupName="category"></dx:MenuItem>
        <dx:MenuItem Name="4" Text="Değiştir" GroupName="category"></dx:MenuItem>
        <dx:MenuItem Name="5" Text="Sil" GroupName="category"></dx:MenuItem>
        <dx:MenuItem Name="6" Text="Yenile" GroupName="tool" BeginGroup="true"></dx:MenuItem>
    </Items>
    <ClientSideEvents Init="ReportsTreeMenuInit" ItemClick="Report.PopupMenuItemClick" PopUp="ReportsTreeMenuPopUp" />
</dx:ASPxPopupMenu>

<dx:ASPxCallback ID="ReportEditorCallback" ClientInstanceName="ReportEditorCallback" runat="server"
    OnCallback="ReportEditorCallback_Callback">
    <ClientSideEvents CallbackComplete="ReportEditorCallbackComplete" />
</dx:ASPxCallback>

<dx:ASPxPopupControl ID="ReportEditorPopUpControl" ClientInstanceName="ReportEditorPopUpControl" runat="server"
    Modal="true" AllowDragging="true" AllowResize="true"  Width="570"
    ShowFooter="True" FooterText="Gerekli alanları doldurun, bir .repx dosyası seçin ve kaydedin..." FooterImage-Url="~/ReportImages/info.png"
    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" RenderMode="Lightweight"
    HeaderText="Rapor Düzenleyici" CloseAction="None" ShowCloseButton="false">
    <ClientSideEvents PopUp="ReportEditorPopUpControlPopUp" />
    <ContentCollection>
        <dx:PopupControlContentControl ID="x" runat="server" SupportsDisabledAttribute="True">
            <uc1:ReportEditControl runat="server" ID="ReportEditControl" />
        </dx:PopupControlContentControl>
    </ContentCollection>
</dx:ASPxPopupControl>

<dx:ASPxLoadingPanel ID="ReportEditorLoadingPanel" ClientInstanceName="ReportEditorLoadingPanel" runat="server" Modal="true"
    Text="Yükleniyor, lütfen bekleyin...">
</dx:ASPxLoadingPanel>
